<?php get_header(); ?>
	
		<div id="container">	
			<div id="content">
			
<?php the_post(); ?>			
			
				<h1 class="category-page-title"><?php _e( 'Categoria:', 'shape' ) ?> <span><?php single_cat_title() ?></span></h1>

<?php rewind_posts(); ?>
			
<?php while ( have_posts() ) : the_post() ?>

				<div id="post-<?php the_ID(); ?>" <?php post_class('categoryPost box-shadow-big'); ?>>
					<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf(the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
					
<?php if ( $post->post_type == 'post' ) { ?>									
					<div class="entry-utility">
						<span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Din categoria ', 'shape' ); ?></span><?php custom_post_categories(get_the_ID()); // function defined in functions.php file ?></span>
						<?php edit_post_link( __( 'Edit', 'shape' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?>
					</div><!-- #entry-utility -->	
<?php } ?>

					<div class="entry-summary">	
						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" >
							<?php the_post_thumbnail('thumb90x90', array('class' => 'alignleft')); ?>
						</a>
<?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt, 50); ?> ...
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'shape' ) . '&after=</div>') ?>
					</div><!-- .entry-summary -->
					
				</div><!-- #post-<?php the_ID(); ?> -->

<?php endwhile; ?>		
			
			</div><!-- #content -->		
		</div><!-- #container -->
		
<?php get_sidebar(); ?>	
<?php get_footer(); ?>